package com.parfinex.java.phase1.module2.task09;

public abstract class Account {
    private int money;

    public Account() {
    }

    public Account(int money) {
        setMoney(money);
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(int money) {
        if(money >=0){
            this.money = money;
        }else {
            System.out.println("金额不合理哦" );
        }
    }

    //自定义抽象方法，实现计算利息并返回的功能描述
    public abstract double getLixi();


}
